package com.memo4android.ui;

import com.memo4android.R;
import com.memo4android.model.ItemNote;

import android.content.Context;
import android.graphics.Color;
import android.widget.TextView;

public class NoteButton extends TextView {

	private ItemNote note;
	
	public NoteButton(Context context, ItemNote note) {
		super(context);
		this.note = note;
		this.setText(note.getTitre() + " - " + note.getContent());
		this.setPadding(5, 5, 5, 5);
		this.setTextColor(Color.BLACK);
		this.setBackgroundResource(R.drawable.postit);
	}
	
	public ItemNote getNote() {
		return note;
	}
}
